package Armas;

import javax.swing.ImageIcon;
import java.awt.Point;
import java.awt.Rectangle;

import GUI.Grafica;

public class Gruesa extends Bala {

	public Gruesa(int x,int y) {
		
	   //Parte Grafica
	   ImageIcon bGruesa = new ImageIcon(Grafica.class.getResource("res/bGruesa.png"));
	   this.setIcon(bGruesa);
	   this.setBounds(x-7,y-39,14,39);
	   this.setFocusable(false);
	   
	   //Inicializacion de Rectangle
	   rectangulo = new Rectangle(this.getX()+1,this.getY()+2,12,35);
	}
	
	//Servicios y consultas
	
	public void mover(Point p){
		super.mover(p);
		this.obtenerRectangulo().setLocation(p.x+1,p.y+2);
	}

}
